package com.study.practice.observer;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.Observable;

/**
 * @Description :
 * @Author : guxuemin
 * @Version : V1.0.0
 * @Date : 2022/9/20 18:53
 */
public class MyObservable extends Observable {


    public static void main(String[] args) {
        final MyObserver myObserver = new MyObserver();
        final MyObservable myObservable = new MyObservable();
        myObservable.addObserver(myObserver);
        myObservable.setChanged();
        myObservable.notifyObservers();

        new AnnotationConfigApplicationContext()
    }


}
